/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package rigo.ricard.pris.rs.ac.uns.dmi.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link rigo.ricard.pris.rs.ac.uns.dmi.service.http.AdvertisingServiceSoap}.
 *
 * @author    Rigo Richard
 * @see       rigo.ricard.pris.rs.ac.uns.dmi.service.http.AdvertisingServiceSoap
 * @generated
 */
public class AdvertisingSoap implements Serializable {
	public static AdvertisingSoap toSoapModel(Advertising model) {
		AdvertisingSoap soapModel = new AdvertisingSoap();

		soapModel.setAdId(model.getAdId());
		soapModel.setUserId(model.getUserId());
		soapModel.setUserName(model.getUserName());
		soapModel.setCreateDate(model.getCreateDate());
		soapModel.setModifiedDate(model.getModifiedDate());
		soapModel.setCarManufacturerId(model.getCarManufacturerId());
		soapModel.setCarModelId(model.getCarModelId());
		soapModel.setCarDescription(model.getCarDescription());
		soapModel.setLocation(model.getLocation());
		soapModel.setPrice(model.getPrice());

		return soapModel;
	}

	public static AdvertisingSoap[] toSoapModels(Advertising[] models) {
		AdvertisingSoap[] soapModels = new AdvertisingSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static AdvertisingSoap[][] toSoapModels(Advertising[][] models) {
		AdvertisingSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new AdvertisingSoap[models.length][models[0].length];
		}
		else {
			soapModels = new AdvertisingSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static AdvertisingSoap[] toSoapModels(List<Advertising> models) {
		List<AdvertisingSoap> soapModels = new ArrayList<AdvertisingSoap>(models.size());

		for (Advertising model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new AdvertisingSoap[soapModels.size()]);
	}

	public AdvertisingSoap() {
	}

	public long getPrimaryKey() {
		return _adId;
	}

	public void setPrimaryKey(long pk) {
		setAdId(pk);
	}

	public long getAdId() {
		return _adId;
	}

	public void setAdId(long adId) {
		_adId = adId;
	}

	public long getUserId() {
		return _userId;
	}

	public void setUserId(long userId) {
		_userId = userId;
	}

	public String getUserName() {
		return _userName;
	}

	public void setUserName(String userName) {
		_userName = userName;
	}

	public Date getCreateDate() {
		return _createDate;
	}

	public void setCreateDate(Date createDate) {
		_createDate = createDate;
	}

	public Date getModifiedDate() {
		return _modifiedDate;
	}

	public void setModifiedDate(Date modifiedDate) {
		_modifiedDate = modifiedDate;
	}

	public long getCarManufacturerId() {
		return _carManufacturerId;
	}

	public void setCarManufacturerId(long carManufacturerId) {
		_carManufacturerId = carManufacturerId;
	}

	public long getCarModelId() {
		return _carModelId;
	}

	public void setCarModelId(long carModelId) {
		_carModelId = carModelId;
	}

	public String getCarDescription() {
		return _carDescription;
	}

	public void setCarDescription(String carDescription) {
		_carDescription = carDescription;
	}

	public String getLocation() {
		return _location;
	}

	public void setLocation(String location) {
		_location = location;
	}

	public double getPrice() {
		return _price;
	}

	public void setPrice(double price) {
		_price = price;
	}

	private long _adId;
	private long _userId;
	private String _userName;
	private Date _createDate;
	private Date _modifiedDate;
	private long _carManufacturerId;
	private long _carModelId;
	private String _carDescription;
	private String _location;
	private double _price;
}